{% extends 'base.html' %}
{% block title %} home.html block title 欢迎光临首页 {% endblock %}

{% block content %}
	{% include 'ad.html' %}
	home.html block content 这里是首页,欢迎光临
	<h3>这是字符串的例子 </h3>
	{{ string }} </br>
	<h3>这是列表的例子 </h3>
	{% for i in  list1 %}
		{{ i }}
		{% if forloop.last  and not empty%}
			!
		{% elif  i == '' %}
		{% else %}
			,
		{% endif %}
	{% empty%}
		<li>抱歉,列表为空</li>
	{% endfor %} </br>
	<h3>这是字典的例子 </h3>
	{% for k,v in dict1.items %}
		<li>{{ k }}: {{ v}} </li></br>
	{% endfor %}

{{ request.path }}
{{ request.GET.urlencode }}
<a href="{{ request.path }}?{{ request.GET.urlencode }}&delete=1">当前网址加参数 delete</a>
<a href="{{ request.path }}?{{ request.GET.urlencode }}">当前网址</a>
{% endblock %}

